package com.ljf.dubbo.quickstart;

import com.ljf.dubbo.TestService;
import org.aspectj.weaver.ast.Test;

import java.util.List;

/**
 * @创建人 lIUJF
 * @创建时间 2019/1/4
 * @描述:
 */
public class TestServiceImpl implements TestService {
	@Override
	public String sendMessage(String message,int i){

		System.out.println("provider----message: "+message+"=="+i);
		try {
			Thread.sleep(2000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		return "provider----message: "+message;
	}

	@Override
	public String sendMessage2(String message, int i){

		System.out.println("provider2----message2: "+message+"=="+i);
		try {
			Thread.sleep(4000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		return "provider2----message2: "+message;
	}

	@Override
	public List<String> mergeTest(String message){
		return null;
	}
}
